﻿namespace CocoaAni.Net.WebSockets.Frames;

public class ReceiveFrame : Frame
{
    public ReceiveFrame(byte[] buffer, int headerStartIndex, int payloadStartIndex) : base(buffer, headerStartIndex)
    {
        Buffer = buffer;
        PayloadStartIndex = payloadStartIndex;
    }

    public ReceiveFrame(byte[] headerBuffer, byte[] buffer, int payloadStartIndex) : base(headerBuffer)
    {
        Buffer = buffer;
        PayloadStartIndex = payloadStartIndex;
    }
}